//package com.appjishu.web.config;
//import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
//import io.swagger.annotations.Api;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Import;
//import springfox.bean.validators.configuration.BeanValidatorPluginsConfiguration;
//import springfox.documentation.builders.ApiInfoBuilder;
//import springfox.documentation.builders.PathSelectors;
//import springfox.documentation.builders.RequestHandlerSelectors;
//import springfox.documentation.service.Contact;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
////import springfox.documentation.swagger2.annotations.EnableSwagger2;
//import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
//
//import java.security.Timestamp;
////import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
//
//@Configuration
//@EnableSwagger2WebMvc
//public class Knife4jConfiguration {
//
//    @Bean
//    public Docket createDocket() {
//        Docket docket = new Docket(DocumentationType.SWAGGER_2)
//                .apiInfo(new ApiInfoBuilder()
//                        .title("FireApiDoc")
//                        .description("Fire Application RESTful APIs")
//                        .version("1.0")
//                        .contact(new Contact("David", "http://www.huowawa.com", "hello@qq.com"))
//                        .build())
//                .select()
//                //这里指定Controller扫描包路径
//                //.apis(RequestHandlerSelectors.any())
//                //.apis(RequestHandlerSelectors.basePackage("com.soft.fire.controller"))
//                .apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
//                .paths(PathSelectors.any())
//                .build()
//                .directModelSubstitute(Timestamp.class, String.class);
//
//        return docket;
//    }
//}
//
